#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<assert.h>
int my_strcmp(const char* e1, const char* e2)
{
	assert(e1 && e2);
	while (*e1++ == *e2++)
	{
		if (*e1 == '\0')
			return 0;
	}
	return *e1 - *e2;
}

int main()
{
	char arr1[] = "abc";
	char arr2[] = "abdc";
	char arr3[] = "abc";
	printf("%d\n", my_strcmp(arr1, arr2));
	printf("%d\n", my_strcmp(arr1, arr3));
	return 0;
}